package com.ruoyi.form.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.MongoPage;
import com.ruoyi.form.domain.AxField;
import org.bson.Document;

import java.util.List;
import java.util.Map;

public interface IDataService {
    public String getPropertyName(AxField field);
    Document findUseMongoByCode(String collection, String code);
    public Document findOneUseMongo(String _id, String collectionName);
    public String saveDataUseMongo(String tplId, Integer version, String collection, Document doc);
    public void updateDataUseMongo(String collection,String id, Map<String, Object> params);
    public MongoPage findExtendUseMongo(MongoPage mongoPage,String collection, String fieldId, String parentId);
    public Integer findMaxSortNum(String fieldId, String parentId);
    public String saveDataUseMongo(String collection,String tplId, Document doc);
    public void delDataUseMongo(List<String> ids, String collection);
    public AjaxResult editUpOrDown(MongoPage mongoPage, String collection, String tplId, String parentId, String id, String type);
}
